package com.iespring.controller.app.brand;

import com.iespring.bean.admin.brand.bo.BrandBo;
import com.iespring.bean.common.BasePageInfo;
import com.iespring.bean.common.BaseRespVo;
import com.iespring.bean.common.CommonData;
import com.iespring.service.app.brand.BrandWXService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author weigwen
 * @Description:
 * @Date 2023/1/2 19:54
 */

@RestController
@RequestMapping("wx")
public class BrandWXController {

    @Autowired
    BrandWXService brandWXService;

    @RequestMapping("brand/list")
    public BaseRespVo brandList(BasePageInfo basePageInfo){
        CommonData commonData = brandWXService.brandList(basePageInfo);
        return BaseRespVo.ok(commonData);
    }

    @RequestMapping("brand/detail")
    public BaseRespVo brandDetail(BrandBo brandBo){
        BaseRespVo baseRespVo = brandWXService.brandDetail(brandBo);
        return baseRespVo;
    }

}
